package com.yh.csx.bsf.flow.core.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author: chejiangyi
 * @version: 2019-11-04 09:37
 **/
public class DateUtil {
    public Date from(String fromat,String date){
        try{
            return new SimpleDateFormat(fromat).parse(date);
        }
        catch (Exception e){
            throw new RuntimeException(e);
        }
    }
}
